package com.echo.code.spring.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * Description
 *
 * @author baiyp
 * @version 1.0.0
 * @date 2019/04/14
 */
@Component
@Aspect
public class MockAspect {

  @Around("execution(* describe(..))")
  public void around(ProceedingJoinPoint joinPoint) throws Throwable {
    System.out.println("before...");
    joinPoint.proceed();
    System.out.println("after...");
  }
}
